const getters = {
  device: state => state.app.device,
  loginModeType: state => state.app.loginModeType,
  theme: state => state.app.theme,
  color: state => state.app.color,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  nickname: state => state.user.name,
  welcome: state => state.user.welcome,
  roles: state => state.user.roles,
  userInfo: state => state.user.info,
  addRouters: state => state.permission.addRouters,
  multiTab: state => state.app.multiTab,
  lang: state => state.i18n.lang,
  settingDrawer: function(state) {
    return state.app.settingDrawer
  },

  //blog-index 模块
  carouselShowStatus: state => state.blogIndex.carouselShowStatus,
  loginVisible: state => state.blogIndex.loginVisible,
  blogPageData: state => state.blogIndex.blogPageData,
  blogTags: state => state.blogIndex.blogTags,
  blogItemHoverStatus: state => state.blogIndex.blogItemHoverStatus,
  condition: state => state.blogIndex.condition,

  //blog-detail 模块
  blog: state => state.blogDetail.blog,
  treeOutline: state => state.blogDetail.treeOutline,
  listOutline: state => state.blogDetail.listOutline,
  openKeys: state => state.blogDetail.openKeys,
  selectedKeys: state => state.blogDetail.selectedKeys,
  activeOpenKeysType: state => state.blogDetail.activeOpenKeysType,
  direction: state => state.blogDetail.direction,

  // blog-param 模块
  friendListInfo: state => state.blogParam.friendListInfo,
  websiteInfo: state => state.blogParam.websiteInfo,

  // blog-comment模块
  comment: state => state.blogComment.comment,
  commentReplyBody: state => state.blogComment.commentReplyBody,
  pagination: state => state.blogComment.pagination
}

export default getters
